package com.lyx.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyx.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyx.vo.UserVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author com.lyx
 * @since 2022-03-02
 */
public interface UserService extends IService<User> {

    Page<User> findUserList(Page<User> page, UserVO userVO);

    /**
     * 导出用户Excel
     * @param response
     * @param tbUsers
     * @throws IOException
     */
    void exportUserExcel(HttpServletResponse response, List<User> tbUsers) throws IOException;

    String login(String username, String password);
}
